package com.gl.order.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@Builder
@ApiModel("添加权限相关参数")
public class PermissionDto {

    @NotBlank(message = "权限编码不能为空")
    @ApiModelProperty("权限编码")
    private String permissionCode;

    @NotBlank(message = "权限名称不能为空")
    @ApiModelProperty("权限名称")
    private String name;

    @ApiModelProperty("父级权限，非必填")
    private String parentId;

}
